﻿body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.register-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    background-size: cover;
    padding: 20px;
    box-sizing: border-box;
}
.register-container {
    width: 100%;
    max-width: 500px;
    min-width: 380px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 100vh;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

    .register-header h1 {
        color: white;
        font-size: 1.8rem;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .register-header h2 {
        color: #a0a0ff;
        font-size: 1.5rem;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .register-header h3 {
        color: #bbdefb;
        font-size: 1rem;
        font-weight: 400;
    }

    .register-header p {
        color: #bbdefb;
        font-size: 1rem;
    }

.register-container button {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

    .register-container button:hover {
        background-color: #218838;
    }

.register-container p {
    margin-top: 20px;
    color: #bbdefb;
}

.register-container router-link {
    margin-top: 20px;
    text-align: center;
    color: #bbdefb;
    font-size: 0.9rem;
}

    .register-container router-link:hover {
        color: #00c6ff;
        text-decoration: underline;
    }


.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

    .form-group label {
        color: #bbdefb;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1rem;
    }

    .form-group input {
        width: 100%;
        padding: 14px;
        background: rgba(20, 30, 60, 0.7);
        border: 1px solid rgba(100, 181, 246, 0.3);
        border-radius: 8px;
        color: white;
        font-size: 1rem;
        transition: all 0.3s;
        box-sizing: border-box;
    }

        .form-group input:focus {
            border-color: #4dccbd;
            box-shadow: 0 0 0 2px rgba(77, 204, 189, 0.3);
            outline: none;
        }

    .form-group.error input {
        border-color: #ff6b6b;
    }

.register-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

    .register-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 114, 255, 0.6);
    }

    .register-btn:disabled {
        background: #6c757d;
        cursor: not-allowed;
    }

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-link {
    margin-top: 20px;
    text-align: center;
    color: #bbdefb;
    font-size: 0.9rem;
}

    .login-link a {
        color: #4dccbd;
        text-decoration: none;
        transition: color 0.2s;
    }

        .login-link a:hover {
            color: #00c6ff;
            text-decoration: underline;
        }


/* 响应式调整 */
@media (max-width: 480px) {
    .register-container {
        min-width: 90vw;
        padding: 30px 20px;
    }

    .register-header h1 {
        font-size: 1.6rem;
    }

    .register-header h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 380px) {
    .register-container {
        min-width: 95vw;
        padding: 25px 15px;
    }

    .form-group input {
        padding: 12px;
    }
}